plugins {
    id 'java'
    id 'application'
}

repositories {
    maven {
        url "<%= gitlab_address_with_port %>/api/v4/projects/<%= package_project.id %>/packages/maven"
        name "GitLab"
        credentials(HttpHeaderCredentials) {
            name = '<%= maven_header_name %>'
            value = <%= token %>
        }
        authentication {
            header(HttpHeaderAuthentication)
        }
    }
}

dependencies {
    implementation group: '<%= group_id %>', name: '<%= artifact_id %>', version: '<%= package_version %>'
    testImplementation 'junit:junit:4.12'
}

application {
  mainClassName = 'gradle_maven_app.App'
}